Peer-to-peer networking through universal port connections

ABSTRACT

Embodiments relate to two general purpose computers connected in a peer-to-peer mode by connecting a cable (or wireless connection) between universal ports (e.g., PCIe ports) on each computer. A timing protocol utility runs on each computer to time schedule operations performed by its respective computer. Because the system clocks on each peer computer operate independently (asynchronously), they may vary somewhat from each other. To support time synchronized peer-to-peer operations, paired clock value (one for each peer computer) are generated continually and independently by each peer system. Each peer system periodically supplies the paired clock values to its associated timing protocol utility, which uses the paired clock values to time synchronize peer-to-peer computer operations. The timing protocol utilities may also exchange the paired clock values with each other for integrity checking and other operations.

DOMESTIC PRIORITY

This application is a continuation of the legally related U.S. application Ser. No. 14/266,863 filed May 1, 2014, which is fully incorporated herein by reference.

BACKGROUND

The present invention relates generally to computer systems, and more specifically, to peer-to-peer networking through universal port connections.

Universal interface ports, such as PCIe ports, are included on general purpose computers to allow the computers to connect to a wide range of external devices, such as local area networks, storage area networks, printers, scanners, graphics controllers, game systems, and so forth. Universal ports generally allow a wide range of different types of external devices to connect to the computer over the same universal port. While universal ports have become popular, peer-to-peer networking is not presently available through the universal ports.

SUMMARY

Embodiments include a method, system, and computer program product for peer-to-peer networking through universal port connections. A responding computer is configured for a peer-to-peer network configuration with an initiating computer that includes a first central processing unit (CPU), a first system clock, a first timing protocol utility configured utilize the first system clock to schedule computer operations performed by the first CPU, and a first universal port. The responding computer includes a second central processing unit (CPU), a second system clock, a second timing protocol utility configured utilize the second system clock to scheduling computer operations performed by the second CPU, and a second universal port. The responding computer is configured for functional connection in the peer-to-peer network configuration through the first and second universal ports.

The second clock synchronizer running on the responding computer generates a second clock marker based on the second system clock in response to receipt of a first system clock marker based on the first system clock received from the initiating computer. The first and second system clock markers form a first version of paired clock values, which the responding computer provides to the second timing protocol utility. The second timing protocol utility utilizes the first version of paired clock values to synchronize peer-to-peer computer operations performed by the second CPU.

BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS

The subject matter which is regarded as embodiments is particularly pointed out and distinctly claimed in the claims at the conclusion of the specification. The forgoing and other features, and advantages of the embodiments are apparent from the following detailed description taken in conjunction with the accompanying drawings in which:

FIG. 1 depicts two computer systems connected in a peer-to-peer networking configuration through a connection between their respective universal ports in accordance with an embodiment;

FIG. 2 depicts a conceptual illustration of time synchronization communications including a first version of paired clock values in accordance with an embodiment;

FIG. 3 depicts a conceptual illustration of time synchronization communications including a second version of paired clock values in accordance with an embodiment;

FIG. 4 depicts a process flow for producing the time synchronization communications in accordance with an embodiment.

DETAILED DESCRIPTION

Embodiments include computers with universal ports connected to each other to connect the computers in a peer-to-peer networking configuration. Universal interface ports are included on general purpose computers to allow the computers to connect to a wide range of external devices, such as a local area networks, storage area networks, printers, scanners, graphics controllers, game systems, and so forth. Universal ports generally allow a wide range of different types of external devices to connect to the computer over the same universal port. PCIe is a modern universal port protocol for parallel ports that allows peripherals utilizing different operating modes to connect to a standard PCIe parallel port. While embodiments pertain to universal ports generally, specific embodiments utilizing the PCIe standard are described below as the illustrative embodiments.

The present disclosure enables the universal ports on two computers to be connected to each other to connect the computers in a peer-to-peer networking configuration. A timing protocol utility runs on each computer to time schedule operations performed by its respective computer. Because the system clocks on each peer computer operate independently (asynchronously), they may vary somewhat from each other. To support time synchronized peer-to-peer operations, paired clock value (one for each peer computer) are continually generated by each peer system. Each peer system periodically supplies the paired clock values to its associated timing protocol utility, which uses the paired clock values to time synchronize peer-to-peer computer operations. The timing protocol utilities may also exchange the paired clock values with each other for integrity checking and other operations. In this context, it should be noted that the term “synchronize” means to “adjust for system clock differences” between the first and second system clocks and does not require that any particular operations be performed simultaneously.

In a particular embodiment, a first peer computer (also referred to as the initiating computer) periodically generates a time-of-day (TOD) marker from its own system clock (i.e., a first TOD clock value based on the first system clock on the first computer reflecting a remote transmit time), which the first peer computer transmits to the second peer counterpart (also referred to as the responding computer) in a time synchronization message. Receipt of the time synchronization message triggers the second peer counterpart to generate its own system clock marker (i.e., a second TOD clock value based on the second system clock on the second computer reflecting a local reception time). The paired clock values reflect the remote transmit time and the local reception time of the same time synchronization communication. The second peer computer then provides the paired clock values to its respective timing protocol utility, which uses the paired clock values for synchronizing peer-to-peer computer operations.

A second version of the paired clock values is similarly initiated by the second computer independently of the first version of pair clock values initiate by the first computer. The timing protocol utilities may also exchange the paired clock values with each other for integrity checking and other operations, so that each timing protocol utility may have both versions of the paired clock values available for synchronizing peer-to-peer computer operations. The procedure may be repeated continually to account for clock drift, resets, and any other changes in relative clock timing that may occur.

Turning now to FIG. 1, a peer-to-peer computer networking configuration 10 includes a first general purpose computer 12 a (first peer computer, also referred to as the initiating computer) and a second general purpose peer computer 12 b (second peer computer, also referred to as the responding computer). The first computer 12 a includes a PCIe port 14 a (universal port) and a central processing unit (CPU) 16 a that includes a host bridge 18 a realized through dedicated hardware and associated firmware as an on-chip subsystem of the CPU. The host bridge 18 a, in turn, includes a clock synchronizer 20 a and an internal system clock 22 a. The first computer 12 a also includes a timing protocol utility 26 a, which may also be realized as an on-chip subsystem of the CPU 16 a. Generally described, the timing protocol utility is a general purpose event scheduler that synchronizes operations of the CPU 16 a.

Although each peer computer need not be identical, their clock operations may be considered analogous for the purpose of the present disclosure. For illustration purposes, the second computer also includes a central processing unit (CPU) 16 b that includes a host bridge 18 b realized through dedicated hardware and associated firmware as an on-chip subsystem of the CPU. The host bridge 18 b, in turn, includes a clock synchronizer 20 b and an internal system clock 22 b. The first computer 12 b also includes its own timing protocol utility 26 b, which may also be realized as an on-chip subsystem of the CPU 16 a. The second computer 12 b also includes a PCIe port 14 b (universal port). Peer-to-peer networking occurs over a functional connection 15 (e.g., a PCIe cable or wireless connection) connected between the first PCIe port 14 a on the first peer computer 12 a and the second PCIe port 14 b on the second peer computer 12 b.

While the clock synchronizers 20 a and 20 b are generally indifferent to the specific timing operations performed by their respective timing protocol utilities 26 a and 26 b, they are tasked with periodically providing their respective timing protocol utilities with paired clock values representing the remote transmit time and the local reception time of time synchronization messages exchanged between the peer computers 12 a and 12 b. FIG. 2 depicts a conceptual illustration of the time synchronization communications for a first version of paired clock values 28 a while FIG. 3 shows the time synchronization communications for a second version of paired clock values 28 b in the peer-to-peer configuration 10. The first version of paired clock values 28 a is initiated by the first computer 12 a and completed by the second computer 12 b, whereas the second version of paired clock values 28 b is initiated by the second computer and completed by the first computer. As shown in FIGS. 2 and 3, the timing protocol utilities 26 a and 26 b may also exchange the paired clock values with each other for integrity checking and other operations, so that each timing protocol utility may have both versions of the paired clock values 28 a and 28 b available for synchronizing peer-to-peer computer operations.

The first clock synchronizer 20 a on the first peer computer 12 a includes a first time-of-day clock 22 a (in this embodiment a 128 bit clock), a packetizer 30 a (packet formation firmware), a first remote transmit time register 32 a, a first local reception time register 34 a, and a first packet decoder 38 a. Similarly, the second clock synchronizer 20 b on the second peer computer 12 b includes a second time-of-day clock 22 b, a second time synchronization packetizer 30 b, a second remote transmit time register 32 b, a second local reception time register 34 b, and a second packet decoder 38 b.

As shown in FIG. 2, the first version of the paired clock values 28 a (initiated by the first computer 12 a) includes a first system clock marker 25 a reflecting the remote transmit time determined by the first system clock 22 a and a second system clock 25 b marker triggered by receipt of the first system clock marker reflecting the local reception time determined by the second system clock 22 b. The timing protocol utility 26 b running on the second computer 12 b may also transmit the first version of paired clock value 28 a to the timing protocol utility 26 a running on the first computer 12 a for integrity checking and other operations.

Similarly, as shown in FIG. 3, the second version of the paired clock values 28 b (initiated by the second computer 12 b) includes a third system clock marker 25 c reflecting a remote transmit time determined by the second system clock 22 b and a fourth system clock marker 25 d triggered by receipt of the third system clock marker reflecting a local reception time determined by the first system clock 22 a. The timing protocol utility 26 a running on the first computer 12 a may also transmit the second version of paired clock value 28 b to the timing protocol utility 26 b running on the second computer 12 b for integrity checking and other operations.

FIG. 4 depicts a process flow 40 for producing the time synchronization communications in the peer-to-peer configuration. Since each clock synchronizer continually performs the same time synchronization procedure independently (asynchronously), only the procedure initiated by the first peer computer 12 a producing the first version of paired clock values 28 a diagramed on FIG. 2 is described below with further reference to the logic flow diagram of FIG. 4. It will be understood, however, that the second peer computer 12 b performs a similar operation to produce the second version of paired clock values 28 b so that each peer's respective timing protocol utility creates and stores its own version of paired clock values. While two versions of the paired clock values are utilized in this particular embodiment, alternative embodiments may utilize a single set of paired clock values continually exchanged between the peer computers as a matter of design choice.

In block 41, the first clock synchronizer 20 a generates a first system clock marker 25 a, which in this embodiment is a 32-bit subset of the time-of-day clock 22 a on the first peer computer 12 a, in which the low-order bit represents a resolution of 62.5 nanoseconds. In block 42, the first packetizer 30 a encodes the first system clock marker 25 ar into a time synchronization communication packet using a suitable packet protocol indicating that the clock synchronizer 20 b is the designated recipient of the packet. In block 43, the first packetizer 30 a transmits the time synchronization communication packet containing the first system clock marker 25 a to the second peer computer 12 b over the functional connection 15.

In block 44, the second clock synchronizer 20 b receives the time synchronization communication packet, the decoder 38 b obtains the first system clock marker 25 a from the packet, and stores the first system clock marker in the remote transmit time register 33 b. In block 45, receipt of the first system clock marker 25 a triggers the second clock synchronizer 20 b to generate a second system clock marker 25 b, which in this embodiment is a 32-bit subset of the time-of-day clock 22 b on the second peer computer 12 b, in which the low-order bit represents a resolution of 62.5 nanoseconds. In block 46, the second clock synchronizer 20 b stores the second system clock marker 25 b in the local reception time register 34 b. In block 47, the second clock synchronizer 20 b provides the paired clock values 28 b (i.e., the first system clock marker in the remote transmit time register 33 b and the second system clock marker in the local reception time register 34 b) to its respective (local) timing protocol utility 26 b. The clock synchronizer 20 b may also read the remote transmit time register 33 b twice, once before reading the local reception time register 34 b and again after reading local reception time register, and compare the two readings to validate the first time marker (e.g., to ensure that a new synchronization message has not arrived during clock value processing). In addition, in block 48, the local timing protocol utility 26 b may also send its version of the paired clock values 28 b to the remote timing protocol utility 26 a via the functional connection 15. Routine 40 periodically repeats independently (asynchronously) of a similar procedure initiated by the second clock synchronizer 20 b.

Technical effects and benefits include the ability to utilize universal PCIe ports to connect two general purpose computers in a peer-to-peer mode. Each computer continually and independently (asynchronously) generates a time marker and transmits it to the other peer computer in a time synchronization communication, which triggers the other peer computer to generate and provide paired clock values to its respective timing protocol utility. Even though the system clock on each peer computer operates independently and each peer computer initiates time synchronization communications independently, periodic generation of paired clock values allows the timing protocol utilities running on both peer computers to maintain continually updated paired clock values for synchronizing peer-to-peer computer operations.

The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises” and/or “comprising,” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, element components, and/or groups thereof.

The corresponding structures, materials, acts, and equivalents of all means or step plus function elements in the claims below are intended to include any structure, material, or act for performing the function in combination with other claimed elements as specifically claimed. The description of the present invention has been presented for purposes of illustration and description, but is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the invention. The embodiment was chosen and described in order to best explain the principles of the invention and the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.

The descriptions of the various embodiments of the present invention have been presented for purposes of illustration, but are not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application or technical improvement over technologies found in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

The present invention may be a system, a method, and/or a computer program product. The computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present invention.

The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.

Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and/or a wireless network. The network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing/processing device.

Computer readable program instructions for carrying out operations of the present invention may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++ or the like, and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present invention

Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.

These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.

The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the functions/acts specified in the flowchart and/or block diagram block or blocks.

The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts or carry out combinations of special purpose hardware and computer instructions.

The descriptions of the various embodiments of the present invention have been presented for purposes of illustration, but are not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application or technical improvement over technologies found in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. 

What is claimed is:
 1. A computer system, comprising: a first computer comprising a first central processing unit (CPU), a first system clock, a first timing protocol utility configured to utilize the first system clock to scheduling computer operations performed by the first CPU, and a first universal port; a second computer comprising a second central processing unit (CPU), a second system clock, a second timing protocol utility configured to utilize the second system clock to scheduling computer operations performed by the second CPU, and a second universal port; a functional connection between the first and second universal ports connecting the first and second computers connected in a peer-to-peer networking configuration; a first clock synchronizer running on the first computer configured to generate a first system clock marker reflecting a time of day based on the first system clock and to transmit the first system clock marker to the second computer over the functional connection between the first and second universal ports, wherein the first system clock marker comprises a subset of a time of day representation generated by the first system clock; a second clock synchronizer running on the second computer configured to generate a second system clock marker based on the second system clock in response to receipt of the first system clock marker, the first and second system clock markers comprising a first version of paired clock values, and to provide the first version of paired clock values to the second timing protocol utility, wherein the second system clock marker comprises a subset of a time of day representation generated by the second system clock; wherein the second timing protocol utility is configured to utilize the first version of paired clock values to synchronize peer-to-peer computer operations performed by the second CPU; the second clock synchronizer is further configured to generate a third system clock marker reflecting a time of day based on the second system clock and to transmit the third system clock marker to the first computer over the functional connection between the first and second universal ports; the first clock synchronizer running is further configured to generate a fourth system clock marker based on the first system clock in response to receipt of the third system clock marker, the third and fourth system clock markers comprising a second version of paired clock values, and to provide the second version of paired clock values to the first timing protocol utility; wherein the first timing protocol utility is configured to utilize the second version of paired clock values to synchronize peer-to-peer computer operations performed by the first CPU; the second computer is further configured to transmit the first version of paired clock values to the first computer; the first timing protocol utility is further configured to utilize the first and second versions of paired clock values to synchronize the peer-to-peer computer operations performed by the first CPU; the first computer is further configured to transmit the second version of paired clock values to the second computer; the second timing protocol utility is further configured to utilize the first and second versions of paired clock values to synchronize the peer-to-peer computer operations performed by the second CPU; wherein the second computer further comprises a remote transmit time register for storing the first system clock marker and a local reception time register for storing the second system clock marker; wherein the first computer further comprises a remote transmit time register for storing the third system clock marker and a local reception time register for storing the fourth system clock marker; and wherein the first and second computers are further configured to continually generate the first and second versions of paired clock values. 